package com.gs.gaosheng.domain;

import com.gs.common.annotation.Excel;
import com.gs.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 优惠券和用户关联表对象 gs_coupon_user
 *
 * @author yy
 * @date 2023-08-03
 */
public class GsCouponUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long couponUserId;

    /** 持有用户id */
    @Excel(name = "持有用户id")
    private Long userId;

    /** 优惠券id */
    @Excel(name = "优惠券id")
    private Long couponId;

    /** 0-未使用1-已使用 */
    @Excel(name = "0-未使用1-已使用")
    private String couponStatus;

    public void setCouponUserId(Long couponUserId)
    {
        this.couponUserId = couponUserId;
    }

    public Long getCouponUserId()
    {
        return couponUserId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCouponId(Long couponId)
    {
        this.couponId = couponId;
    }

    public Long getCouponId()
    {
        return couponId;
    }
    public void setCouponStatus(String couponStatus)
    {
        this.couponStatus = couponStatus;
    }

    public String getCouponStatus()
    {
        return couponStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("couponUserId", getCouponUserId())
            .append("userId", getUserId())
            .append("couponId", getCouponId())
            .append("couponStatus", getCouponStatus())
            .toString();
    }
}
